home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
mxcode
/
sbf3
/
sbmidi.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-05
|
298b
|
19 lines
#include <stdio.h>
#include <dos.h>
#include "sb.h"
int Sb_Read_MIDI(void)
{
writedac(MIDI_READ_POLL);
while(!(inportb(DSP_DATA_AVAIL) & 0x80))
;
return inportb(DSP_READ_DATA);
}
void Sb_Write_MIDI(int data)
{
writedac(MIDI_WRITE_POLL);
writedac(data);
}